<?php

class License
{
    const BUSINESS          = "business";
    const FREE              = "free";
    const NONCOMMERCIAL     = "nc";
    const OEM               = "oem";
    const TRIAL             = "trial";

    private static $data = array();

    private function __construct() {}

    public static function __construct_static()
    {
        self::$data = Core::Config()->licenses;
    }

    public static function GetName( $license )
    {
        return isset( self::$data[$license]) ? self::$data[$license] : '';
    }

    public static function IsCorrect( $license )
    {
        return array_key_exists($license, self::$data);
    }
}

?>